package ua.com.infinite.mobile.server;

import org.json.JSONException;
import org.json.JSONObject;

public class ResponseObject {
	private String action;
	private JSONObject data;
	
	public ResponseObject(){
		this.setAction("");
		this.setData(new JSONObject());
	}
	
	public ResponseObject(String action, String data){
		super();
		this.setAction(action);
		try {
			this.setData(new JSONObject(data));
		} catch (JSONException e) {
			e.printStackTrace();
		}
	}

	public String getAction() {
		return action;
	}

	public void setAction(String action) {
		this.action = action;
	}

	public JSONObject getData() {
		return data;
	}

	public void setData(JSONObject data) {
		this.data = data;
	}
	
	
}
